package com.njcb.ams.assembler;

import org.springframework.stereotype.Component;

@Component
public class DocumentConvertor {
//    private static MapperFactory mapperFactory = new DefaultMapperFactory.Builder().build();
//
//    static {
//        mapperFactory.classMap(CommDocumentConfig.class, DocumentInfo.class)
//                .byDefault().register();
//    }
//
//    public CommDocumentConfig voToEntity(DocumentInfo clientObject) {
//        return mapperFactory.getMapperFacade().map(clientObject, CommDocumentConfig.class);
//    }
//
//    public DocumentInfo entityToVo(CommDocumentConfig entityObject) {
//        return mapperFactory.getMapperFacade().map(entityObject, DocumentInfo.class);
//    }
}
